export default [
  {
    path: '/user',
    layout: false,
    routes: [
      {
        path: '/user',
        routes: [
          {
            name: 'login',
            path: '/user/login',
            component: './user/Login',
          },
        ],
      },
    ],
  },
  {
    path: '/dashboard',
    name: 'dashboard',
    icon: 'dashboard',
    component: './Dashboard/Analysis',
  },
  {
    path: '/operation',
    name: 'operation',
    icon: 'calculator',
    // authority: ['PARK:ZONE:ALL', 'PARK:SPACE:ALL', 'SysRoleSchemeManagement'],
    routes: [
      {
        path: '/operation/device',
        name: 'device',
        icon: 'bulb',
        authority: ['DEVICE:DEVICE:ALL', 'DEVICE:DEVICE:LOCKER'],
        component: './Device/Locker/List',
      },
      {
        path: '/operation/parking-lot',
        name: 'park-lot',
        icon: 'calculator',
        authority: ['PARK:ZONE:ALL', 'PARK:SPACE:ALL'],
        component: './Parking-lot/index',
      },
      {
        path: '/operation/parking-space',
        name: 'park-space',
        icon: 'calculator',
        authority: ['PARK:SPACE:ALL'],
        component: './Spaces/SpaceList',
      },
      {
        path: '/operation/scheme',
        name: 'charge-rule',
        icon: 'calculator',
        component: './Finance/Scheme/RuleList',
      },
      {
        path: '/operation/credit',
        name: 'blacklist',
        icon: 'calculator',
        component: './Credit/BlackList',
      },
    ],
  },
  {
    path: '/parking',
    name: 'parking',
    icon: 'interaction',
    routes: [
      // {
      //   path: '/parking/reservation',
      //   name: 'reservation',
      //   icon: 'profile',
      //   component: './Reservation',
      // },
      {
        path: '/parking/reservation-order',
        name: 'reservationorder',
        icon: 'profile',
        component: './ReservationOrder',
      },
      {
        path: '/parking/list',
        name: 'list',
        icon: 'profile',
        component: './ParkingOrder',
      },
    ],
  },
  {
    path: '/finance',
    name: 'finance',
    icon: 'transaction',
    routes: [
      {
        path: '/finance/statistics',
        name: 'statictics',
        icon: 'profile',
        component: './Finance/SpaceIncomeStatistics/List',
      },
      {
        path: '/finance/bill',
        name: 'bill',
        component: './Finance/bill',
      },
      // {
      //   path: '/finance/space-income-statistics/:id/detail',
      //   name: 'finance.space-income-statistics.detail',
      //   icon: 'profile',
      //   hideInMenu: true,
      //   component: './Finance/SpaceIncomeStatistics/Detail',
      // },
    ],
  },
  {
    path: '/applet',
    name: 'applet',
    icon: 'transaction',
    routes: [
      {
        path: '/applet/activity',
        name: 'applet_activity',
        icon: 'calculator',
        component: './configapplet/activity',
      },
      {
        path: '/applet/relevance',
        name: 'applet_relevance',
        icon: 'calculator',
        component: './configapplet/relevance',
      },
    ],
  },
  {
    path: '/system',
    name: 'system',
    icon: 'setting',
    routes: [
      {
        path: '/system/account',
        name: 'account',
        icon: 'user',
        component: './user/Admin',
      },
      // {
      //   path: '/system/user/manage',
      //   name: 'user_manage',
      //   icon: 'user',
      //   component: './user/manage',
      // },
      // {
      //   path: '/system/profit',
      //   name: 'profit',
      //   icon: 'user',
      //   routes: [
      // {
      //   path: '/system/profit/rule',
      //   name: 'profit-rule',
      //   icon: 'user',
      //   component: './profit/rule',
      // },
      // {
      //   path: '/system/profit/account',
      //   name: 'profit-account',
      //   icon: 'user',
      //   component: './profit/account',
      //   // },
      //   // ],
      // },
      {
        path: '/system/auth',
        name: 'auth',
        icon: 'user',
        // authority: [ 'ACCOUNT:ACCOUNT:ALL', 'ACCOUNT:ROLE:ALL' ],
        routes: [
          {
            path: '/system/auth/role',
            name: 'role',
            icon: 'user',
            // authority: [ 'ACCOUNT:ROLE:ALL' ],
            component: './System/Auth/AuthRole',
          },
          {
            path: '/system/auth/permission',
            name: 'access',
            icon: 'book',
            component: './System/Auth/AuthPermission',
          },
        ],
      },
      {
        path: '/system/tenant',
        name: 'tenant',
        icon: 'dollar',
        routes: [
          {
            path: '/system/tenant/list',
            name: 'list',
            icon: 'user',
            component: './Tenant/Tenant',
          },
        ],
      },
      {
        path: '/system/batch',
        name: 'batch',
        icon: 'user',
        component: './Batch',
      },
      {
        path: '/system/message',
        name: 'message',
        icon: 'message',
        routes: [
          {
            path: '/system/message/list',
            name: 'messagelist',
            icon: 'message',
            component: './Message',
          },
        ],
      },
      {
        path: '/system/code',
        name: 'code',
        icon: 'book',
        component: './System/DictCode',
      },
    ],
  },
  {
    path: '/',
    redirect: '/dashboard',
  },
  {
    component: './404',
  },
];
